chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
    if (request.action === 'requestDownload') {
        console.log(request.filename)
        chrome.downloads.download({
            url: request.dataURL,
            filename: request.filename,
            conflictAction: 'uniquify'
        }, (downloadId) => {
            sendResponse({
                status: !chrome.runtime.lastError,
                error: chrome.runtime.lastError
            });
        });
        return true; // 保持消息通道开放
    }
});
let aaa=333;
